/*
 * @Author: wfl
 * @LastEditors: wfl
 * @description: 
 * @updateInfo: 本次更新内容：
 * @Date: 2021-12-08 12:25:48
 * @LastEditTime: 2021-12-09 14:17:21
 */
import * as Cesium from 'cesium';
import AnimationPointMaterialProperty from '../material/material2';
export default function useWall(viewer: Cesium.Viewer) {
  const entry = viewer.entities.add({
    name: 'yscNoNeedEntity',
    wall: {
      positions: Cesium.Cartesian3.fromDegreesArrayHeights([
        118.286419, 31.864436, 20000.0,
        119.386419, 31.864436, 20000.0,
        119.386419, 32.864436, 20000.0,
        118.286419, 32.864436, 20000.0,
        118.286419, 31.864436, 20000.0,
      ]),
      material: new AnimationPointMaterialProperty(Cesium.Color.RED, 2000),
    },
  });

  return {
    entry
  };
}
